#!/bin/bash

echo '开放端口'
firewall-cmd --zone=public --add-port=3080/tcp --permanent
firewall-cmd --zone=public --add-port=3443/tcp --permanent
firewall-cmd --zone=public --add-port=3022/tcp --permanent
firewall-cmd --reload

echo '启动容器'
docker-compose up -d

echo '查看容器'
docker-compose ps

echo '获取初始 root 密码'
docker exec -it gitlab grep 'Password:' /etc/gitlab/initial_root_password
